package org.sbbs.entity;

import jakarta.persistence.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.envers.AuditOverride;
import org.hibernate.envers.Audited;
import org.sbbs.base.jpa.entity.BaseAuditEntity;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Audited
@AuditOverride(forClass = BaseAuditEntity.class, isAudited = true)
@Entity(name = "t_book")
public class Book extends BaseAuditEntity {
    private String name;
    private String author;
    private String isbn;
    private LocalDate publishDate;
}
